package com.canic.dkd.authorization.staff.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.canic.dkd.authorization.staff.entity.SysPermission;
import com.canic.dkd.authorization.staff.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 权限
 * @author ZC
 * @since 2019-05-02
 */
@Repository
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    /**
     * 根据用户ID获取该用户所有角色
     */
    List<SysRole> getRoleListByPermissionUrl(@Param("permissionUrl") String permissionUrl);

}
